package cn.wolfcode.luowowo.member.mapper;

import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    void insert(UserInfo entity);
    String checkPhone(String phone);

    UserInfo checkUserInfo(@Param("phone") String phone, @Param("password") String password);

    List<UserInfo> selectAll();

    UserInfo selectByPrimarKey(Long userInfoId);

    void addVisitor(@Param("uid") Long uid, @Param("visitorId") Long visitorId);

    List<UserInfo> listvisitor(Long uid);

    Integer gettotal(Long uid);

    Integer nowdayTotal(Long uid);

    Integer getAttentionNumById(Long uid);

    Integer getFansNumById(Long uid);

    UserInfo getAttentionUser(Long uid);

    void update(UserInfo userInfo);

    void updateHeadImg(@Param("userInfoId") Long userInfoId, @Param("upload") String upload);

    String getPhoneById(Long id);

    void changePassword(@Param("id") Long id, @Param("password") String password);

    String getEmailById(Long id);

    void changeEmail(@Param("id") Long id, @Param("email") String email);

    void changePhone(@Param("id") Long id, @Param("phone") String phone);

    void deleteUserInfo(Long id);

    UserInfo selectById(Long id);
}
